home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
misc
/
amag
/
sh9301e.lha
/
Maxon-CPP-Demo
/
Include
/
streamdefs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-17
|
737b
|
34 lines
/*
Interna der Dateiverwaltung von MAXON C++
Jens Gelhar 15.11.91
*/
#ifndef INCLUDE_IO_STREAM
#define INCLUDE_IO_STREAM
struct streambuffer;
struct stream
{ unsigned Filehandle;
char UngetCh, UngetBuf;
signed char Mode, Error;
struct streambuffer *bufptr;
struct { int f_freemem:1, f_closefile:1 } flags;
};
struct streambuffer
{ stream *streamptr;
short size, fill, pos;
signed char mode, own;
int (*read)(register streambuffer *a0, register void *d2, register unsigned d3);
int (*write)(register streambuffer *a0, register void *d2, register unsigned d3);
int (*flush)(register streambuffer *a0);
int (*close)(register streambuffer *a0);
void *buf;
};
stream *allocstream(unsigned Handle);
#endif